-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TS migration] Migrate 'getTooltipStyles.js' style to TypeScript #26062
[TS migration] Migrate 'getTooltipStyles.js' style to TypeScript #26062
Conversation
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24729 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Hi! This is the first one of these I've looked at so it might take some time; we're on the merge freeze anyway so it doesn't seem like there's a huge rush. I will probably ask a number of basic questions, so apologies in advance! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-30.at.20.49.22.movScreen.Recording.2023-08-30.at.20.49.54.movMobile Web - ChromeScreen.Recording.2023-08-30.at.20.46.20.movMobile Web - SafariScreen.Recording.2023-08-30.at.20.46.57.movDesktopScreen.Recording.2023-08-30.at.20.50.23.moviOSScreen.Recording.2023-08-30.at.20.48.29.movAndroidScreen.Recording.2023-08-30.at.20.47.45.mov |
okay first question - most of this makes sense, but in a couple of the functions we moved around the order of the |
Also just to be double careful, before merging let's make sure this branch is in sync with the newest main @dangrous (we should check that parameters are in the correct order in all function usages) |
ah okay cool, thank you for explaining! That makes sense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor change, otherwise this looks good assuming we double check that we've adjusted all usages of these functions to be in the right order!
src/styles/getTooltipStyles.ts
Outdated
* @param {Number} tooltipTargetWidth - The width of the tooltip's target | ||
* @param {Number} tooltipTargetHeight - The height of the tooltip's target | ||
* @returns {Boolean} | ||
* @param [tooltip] - The reference to the tooltip's root element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this one to the top of the param list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me! Just one final question - do we have an automated TS checker set up yet, or are we relying on us to make sure we catch all the places we need types?
Sweet! Two more things now:
|
@dangrous Done! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.68-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.68-17 🚀
|
Details
Migration of src/styles/getTooltipStyles.js to Typescript.
Fixed Issues
$ #24729
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
+
buttonPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mov
Desktop
desktop.mov
iOS
ios.mov